package com.bems.action;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.bems.common.UtilEnum;
import com.bems.jdbc.common.DBManager;
import com.bems.pojo.POJO;
import com.bems.pojo.Type;
import com.google.gson.Gson;
import com.google.gson.JsonElement;

import cn.org.ape.BaseAction;

public class TypeAction extends BaseAction 
{
	
			/**
			 * 取得使用的类型
			 */
       public void list() 
       			{
    	   			
								List<Type> list = (List<Type>) new Type().list();
								Gson gson = new Gson();
								JsonElement element = gson.toJsonTree(list);	
								DBManager.closeConnection();
								printJson(element.toString());
       			}
}
